<html lang="en"><head>
	<meta charset="UTF-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
	<title>修改资料-彩铃销售管理系统</title>
	<link rel="stylesheet" href="__PUBLIC__/Css/reset.css">
	<link rel="stylesheet" href="__PUBLIC__/Css/font.css">
	<link rel="stylesheet" href="__PUBLIC__/Css/frame.css">
</head>
<body class="register">
<div id="wrap">
	<div id="header">
		<a href="__APP__" class="side"><span>返回</span></a>
		<div class="center"><span>修改资料</span></div>
		<div class="side"></div>
	</div>
	<div id="main">
		<form action="__URL__/changedataSave" id="common-form" onSubmit="return false">
			<div class="rows">
				<span class="title">您的ID</span>
				<input type="text" name="UserID" value="{$vo['user_id']}" placeholder="您的ID" class="input" readonly>
			</div>
			<div class="rows">
				<span class="title">您的姓名</span>
				<input type="text" name="UserName" value="{$vo['user_name']}" placeholder="真实姓名" class="input" data-rule="cname" data-errmsg="姓名填写错误">
			</div>
			<div class="rows">
				<span class="title">客服号码</span>
				<input type="tel" name="UserTel" value="{$vo['user_tel']}" placeholder="您的手机号码" class="input" data-rule="m" data-errmsg="手机号码错误">
			</div>
			<div class="rows">
				<span class="title">微信号码</span>
				<input type="text" name="UserWeiXin" value="{$vo['user_phone']}" placeholder="您的微信号" class="input" data-ignore="true">
			</div>
			<div class="rows">
				<span class="title">登录密码</span>
				<div class="input"><a href="__APP__/Change/cody/c_id/2">******</a></div>
				<em class="rg rg-right"></em>
			</div>
			<div class="rows">
				<!--<span class="title">提现账户</span>-->
				<!--<div class="input"><a href="account.html">18911504336</a></div>-->
				<!--<em class="rg rg-right"></em>-->
				<span class="title">提现账户</span>
				<input type="text" name="BankCard" value="{$vo['bank_card']}" placeholder="提现账户" class="input" data-ignore="true">
			</div>
			<div class="rows">
				<span class="title">显示联系</span>
				<div class="input" style="-webkit-box-pack:end;">
					<span class="checkbox " data-url=""></span>
				</div>
			</div>
			<div class="sub">
				<input type="hidden" name="ID" value="{$vo['id']}" >
				<input type="submit" value="保存信息" class="sub-btn">
			</div>
			<div class="reg-link">
            <div>{$server}/Reg/us_reg/rid/{$vo['id']}</div>
				<p>合作注册链接长按链接可以复制</p>
            			</div>
		</form>
	</div>
</div>
<style>
.bb{ background:#F00;}
</style>
<script type="text/javascript" src="__PUBLIC__/Js/function.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/avalidate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/zepto.js"></script>
<script type="text/javascript">
V.init({
	area : '#common-form',
    btn : '.sub-btn',
    tip : function (e,msg){
    	showToast(msg);
    },
    complete: function (form, status){
    	if(status != 'error'){
    		var url = form.getAttribute('action');
    		showProgress('保存中...');
    		var datas = $(form).serialize();
    		$.post(url,datas,function(ret){
    			hideProgress();
    			showToast(ret.info);
    			if(ret.status == 1){
    				setTimeout(function (){window.location.href = ret.url;},800);
    			}
    		},'json');
    	}
    }
});
$('.checkbox').click(function (){
	var _url = $(this).attr('data-url'),_obj = $(this);
	showConfirm({title:'提示信息',text:'你确定开启联系客服？',buttons : ['确定','取消']},function (k){
		if(k == 0){
			showProgress('正在处理');
			$.getJSON(_url,function (ret){
				hideProgress();
				showToast(ret.info);
				if(ret.status == 2){
					_obj.toggleClass('checked');
					_obj.attr('data-url',ret.url);
				}
			});
		}
	});
});

</script>
<include file="Public:footer" />